extends ParallaxBackground

var speed = 100
# Called when the node enters the scene tree for the first time.
func _ready():
	pass


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	if Global.bg_start_scroll:
		$ParallaxLayer.motion_offset.x -= speed * delta
	else:
		$ParallaxLayer.motion_offset = Vector2(0,0)
